package com.utils;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

// 高德地图逆地理响应
@Data
public class GaodeAddrResponse {

    /**
     * status : 1
     * info : OK
     * infocode : 10000
     * count : 1
     * geocodes : [{"formatted_address":"北京市朝阳区阜通东大街|6号","country":"中国","province":"北京市","citycode":"010","city":"北京市","district":"朝阳区","township":[],"neighborhood":{"name":[],"type":[]},"building":{"name":[],"type":[]},"adcode":"110105","street":"阜通东大街","number":"6号","location":"116.483038,39.990633","level":"门牌号"}]
     */

    private Integer status;
    private String info;
    private Integer infocode;
    private Integer count;
    private List<GeocodesBean> geocodes;

    @Data
    public static class GeocodesBean {
        /**
         * formatted_address : 北京市朝阳区阜通东大街|6号
         * country : 中国
         * province : 北京市
         * citycode : 010
         * city : 北京市
         * district : 朝阳区
         * township : []
         * neighborhood : {"name":[],"type":[]}
         * building : {"name":[],"type":[]}
         * adcode : 110105
         * street : 阜通东大街
         * number : 6号
         * location : 116.483038,39.990633
         * level : 门牌号
         */
        //private String formatted_address;
        //private String country;
        //private String province;
        //private String citycode;
        //private String city;
        //private String district;
        //private Integer adcode;
        private String location;
    }
}
